JavaScript

{dialog.object}populateControlsFromTable Method

Syntax

{dialog.object}.populateControlsFromTable(primaryKey [, flagShowDebuggingInfo [, onCallbackComplete [, debugInfoLocation]]]);

Arguments

primaryKeystring

The primary key corresponding to the record containing the data to load from the table.

flagShowDebuggingInfoboolean

If true, shows debugging information

onCallbackCompleteCodestring

Javascript code to execute when the callback is complete

debugInfoLocationstring

If not blank, name of the Placeholder control where debug info should be shown. Otherwise, default location is used.

Description

Populates the controls in a Dialog with data from a table.

Discussion

If the primary key has multiple columns, use ||| (three pipes) to delimit the key values. You must have previously set the Data Binding properties on the Dialog.

Example

Load the data for primary key '123'

{dialog.Object}.populateControlsFromTable('123');

Specify some code to run on callback complete

{dialog.Object}.populateControlsFromTable('John|||Smith',false,'myCallbackDone();');

See Also